<?php

/*
  VoIP Wholesale 1.0
  ------------------
  Document   : module_external_home
  Created on : Sep 14, 2011, 4:32:27 PM
  Author     : Milos Jovanovic <miloscode@gmail.com>
  Description:

 */
?>
<div id="page-title"><?=lang('text_module_carriers_settings')?></div>

<div class="ui-widget"> 
    <div id="content">
        <!-- PAGE CONTENT -->
		<form action="javascript:void(0);" id="module-settings-form">
		<fieldset class="ui-widget ui-widget-content">
		<legend class="ui-widget-content" style="padding:5px;"><?=lang('term_carriers')?></legend>
			<!-- settings-->
			<ul class="settings-fields">
				<li>
					<label><?=lang('text_default_company_billing_period')?></label> 
					<select name="data[default_company_billing_period]" id="default_company_billing_period"> 
						<option value="weekly" <?php if($default_company_billing_period == "weekly"){?>selected="selected"<?php }?>><?=lang('term_weekly')?></option>
						<option value="bi_monthly" <?php if($default_company_billing_period == "bi_monthly"){?>selected="selected"<?php }?>><?=lang('term_bi_monthly')?></option>
						<option value="monthly" <?php if($default_company_billing_period == "monthly"){?>selected="selected"<?php }?>><?=lang('term_monthly')?></option>
					</select>				
				</li>				
				<li>
					<label><?=lang('text_default_company_payment_delay')?></label>
					<input type="text" name="data[default_company_payment_delay]" id="default_company_payment_delay" value="<?=$default_company_payment_delay?>" size="12"/>
					<p class="unit"><?=lang('term_days')?></p>
				</li>
			</ul>
			<ul class="settings-fields">				
				<li>
					<label><?=lang('text_default_carrier_billing_period')?></label> 
					<select name="data[default_carrier_billing_period]" id="default_carrier_billing_period"> 
						<option value="weekly" <?php if($default_carrier_billing_period == "weekly"){?>selected="selected"<?php }?>><?=lang('term_weekly')?></option>
						<option value="bi_monthly" <?php if($default_carrier_billing_period == "bi_monthly"){?>selected="selected"<?php }?>><?=lang('term_bi_monthly')?></option>
						<option value="monthly" <?php if($default_carrier_billing_period == "monthly"){?>selected="selected"<?php }?>><?=lang('term_monthly')?></option>
					</select>				
				</li>				
				<li>
					<label><?=lang('text_default_carrier_payment_delay')?></label>
					<input type="text" name="data[default_carrier_payment_delay]" id="default_carrier_payment_delay" value="<?=$default_carrier_payment_delay?>" size="12"/>
					<p class="unit"><?=lang('term_days')?></p>
				</li>
			</ul>
		</fieldset>
		
		<br />
		<div id="response"></div>
		<br />
		<div id="buttons">
			<button id="module-save-settings"><?=lang('button_save_settings')?></button>
		</div>
		</form>
    </div>    
</div>   